package study.javaee.practice.entity;

import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name="projectJoinApply")
@IdClass(JpaProIduserIdPK.class)
public class JpaProjectJoinApply {

    @Id
    @Column(name="project_id")
    Integer projectId;


    String content;

    @Id
    @Column(name="user_id")
    Integer userId;

    int state;

    public JpaProjectJoinApply(int pid, String content, int uid, int state) {
        this.content=content;
        this.projectId=pid;
        this.userId=uid;
        this.state=state;
    }

    public JpaProjectJoinApply() {
    }
}
